<template>
  <div>
    <h1>test</h1>
    <HomePanel :title="新鲜好物" :sub="今日八折" >
      <template #right>
          <span>右边👉</span>
      </template>
      <p>默认插槽内容</p>
    </HomePanel>
  </div>
</template>

<script>
import request from '@/utils/request'
import { onMounted } from 'vue'
import HomePanel from '@/views/Home/components/home-panel'
export default {
  components: {
    HomePanel
  },
  setup () {
    const getNew = async () => {
      const res = await request('./home/new', 'get')
      console.log(res)
    }
    onMounted(() => {
      getNew()
    })
    return { getNew }
  }
}
</script>

<style>

</style>
